package com.margo.project.websocket.listener;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

import com.margo.project.websocket.WebSocketServer;

@Component
public class MargoWebSocketApplicationListener implements ApplicationListener<MargoWebSocketApplicationEvent>{

	@Autowired
	private WebSocketServer webSocketServer;
	@Override
	public void onApplicationEvent(MargoWebSocketApplicationEvent event) {
		webSocketServer.sendInfo("fxb");
	}

}
